var fs=require('fs');

//同步写法
var readMe_sync = fs.readFileSync("readMe.txt","utf8");
console.log(readMe_sync);

fs.writeFileSync("writeMe.txt",readMe_sync);

//异步写法
var readMe=fs.readFile('readMe.txt','utf8',function(err,data){
    console.log("异步 readMe....."+data+err)
})